<? include("ggheader.php");?>
<style type="text/css">
	.ggMainCon .mainCol.l{ min-height:600px; background:#fff; border:1px solid #ddd}
	.newDetailWrap{ padding:30px; background:#fff;}
	.newDetailWrap .ntit{ text-align:center;}
	.newDetailWrap .ntit .t{ font-size:24px; font-weight:bold;}
	.newDetailWrap .ntit .d{ font-size:14px; margin-left:20px;}
	.newDetailWrap .statusTxt{ height:300px; line-height:300px; text-align:center;}
	.newDetailWrap .ncontent{ text-indent:2em; line-height:1.8; margin-top:10px;}
</style>
<div class="ggMainCon ggw1100 clearfix">
    <div class="mainCol l">
		<div class="newDetailWrap">
			<div id="newDetailCon" class="newDetailCon"></div>
		</div>
    </div>
    <div class="ggNoticeBar mainCol r">
        <div id="sucOrderList" class="nbox sucOrder sucOrderBar">
            <p class="tit"><i class="gsprite gicon sucOrder"></i><span class="t">系统通知</span></p>
            <div id="newsSlideStage" class="conWrap">
                <ul id="newsSlideListUl" class="listUl"></ul>
            </div>
         </div>
    </div>
</div>
<script type="text/javascript">
$(function(){
	G.News.init();
	var _location = window.location;
	var id = _location.search;
	id = id.replace("?id=","");
	if(!id) return;
	var loadingTxt = '<div class="loading statusTxt">加载中...</div>';
	var emptyTxt = '<div class="empty statusTxt">返回数据为空...</div>';
	var timeoutTxt = '<div class="timeout statusTxt">请求超时，请刷新重试</a></div>';
	var errorTxt = '<div class="error statusTxt">请求出错，请刷新重试</div>';
	G.News.getDetail(id,{
		loading : function(){
			$("#newDetailCon").html(loadingTxt);
		},
		removeLoading : function(){
			$("#newDetailCon").html("");
		},
		success : function(res){
			var tit = res.title;
			var con = res.content ? res.content.replace(/&quot;/g,"'") : '<div style="height:200px; line-height:200px; width:100%; text-align:center;">查无内容...</div>';
			var btime = res.btime;
			var html = '<h3 class="ntit"><span class="t">'+tit+'</span><span class="d">'+btime+'</span></h3><div class="ncontent">'+con+'</div>';
			$("#newDetailCon").html(html);
		},
		timeout : function(){
			$("#newDetailCon").html(timeoutTxt);
		},
		error : function(){
			$("#newDetailCon").html(errorTxt);
		}
	})
})
</script>
<?php include("ggfoot.php");?>
</body>